<template>
  <div class="hotspot_item">
    <div class="image">
      <img :src="$props.hotspot.albumCoverPath" class="img" />
      <van-icon name="play" class="icon"></van-icon>
    </div>
    <div class="text">
      <div class="text_top">{{ props.hotspot.title }}</div>
      <div class="text_bottom">
        <div class="text_content">
          <van-icon name="contact"></van-icon>
          <span>{{ props.hotspot.anchorName }}</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
const props = defineProps(['hotspot'])
</script>

<style scoped lang="less">
.hotspot_item {
  height: 70px;
  width: 100%;
  display: flex;
  margin-bottom: 30px;
  .image {
    position: relative;
    .img {
      width: 70px;
      height: 70px;
      border-radius: 10px;
    }
    &::before {
      position: absolute;
      width: 100%;
      height: 100%;
      content: '';
      background-color: rgba(0, 0, 0, 0.3);
      border-radius: 10px;
    }
    .icon {
      position: absolute;
      color: #fff;
      top: 24px;
      left: 22px;
    }
  }
  .text {
    margin-left: 10px;
    padding-top: 4px;
    .text_top {
      font-size: 16px;
      color: #4f4f5a;
      overflow: hidden;
      display: -webkit-box;
      text-overflow: ellipsis;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      letter-spacing: 1px;
    }
    .text_bottom {
      display: flex;
      font-size: 12px;
      color: #999999;
      margin-top: 16px;

      .text_content {
        margin-right: 16px;
      }
    }
  }
}
</style>
